import scrapy


# 保存抓取的信息的格式（json的key）
class MoocCourseItem(scrapy.Item):
    # 课程标题
    title = scrapy.Field()
    # 课程url
    url = scrapy.Field()
    # 课程标题图片
    image_url = scrapy.Field()
    # 课程描述
    introduction = scrapy.Field()
    # 学习人数
    student = scrapy.Field()
    # 课程级别
    class_level = scrapy.Field()
    # 下载到本地图片地址
    image_path = scrapy.Field()
